<?php
/**
 * login page
 *
 * @author
 * @version
 */
echo $this->doctype();
$url = Zend_Controller_Front::getInstance()->getBaseUrl();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="<?php echo $url;?>/favicon.ico">
	<?php
        $url = Zend_Controller_Front::getInstance()->getBaseUrl();
    ?>
	<link href="<?php echo $url;?>/styles/login.css" rel="stylesheet" type="text/css"></link>
</head>

<body>
    <form action="<?php echo $this->form->getAction(); ?>" method="post">
    <div class="a_login_contant">
      <div class="a_login_center">
        <div class="a_login_center_top"></div>
        <div class="a_login_center_left"></div>
        <div class="a_login_center_right">
          <div class="a_login_center_right_login">
            <div class="a_login_center_right_text" style="_width:80px;"><?php echo $this->form->email->getLabel(); ?></div>
            <div class="a_login_center_right_input">
              <input name="email" type="text" value="<?php echo $this->form->getValue("email"); ?>" style="width:150px;"  />
            </div>
          </div>
          <div class="clear"></div>
          <div class="a_login_center_right_login">
            <div class="a_login_center_right_text" style="_width:80px;"><?php echo $this->form->password->getLabel(); ?></div>
            <div class="a_login_center_right_input">
              <input name="password" value="" type="password" style="width:150px;" />
            </div>
          </div>
          <div class="clear"></div>
          <?php
                if(isset($_SESSION['loginFailedTime']) && $_SESSION['loginFailedTime'] > 3){
          ?>
          <div class="a_login_center_right_login">
            <div class="a_login_center_right_text">Type the letters</div>
            <div class="a_login_center_right_input">
              <input name="confirmCode" value="" type="text" style="width:150px;" />
            </div>
          </div>
          <div class="clear"></div>
          <div class="a_login_center_right_login">
            <div class="a_login_center_right_text">&nbsp;</div>
            <div class="a_login_center_right_input">
              <img src="<?php echo $url; ?>/acl/admin/captcha"  alt="" />
            </div>
          </div>
          <div class="clear"></div>
          <?php
              }
          ?>
          <div class="a_login_center_right_login">
          <div class="a_login_center_right_text">&nbsp;</div>
            <div class="a_login_error">
                <?php
                   $error = $this->form->getErrorMessages();
                    if(!empty($error[0])){
                         echo $error[0];
                    }
                ?>
            </div>
          </div>
          <div class="clear"></div>
          <div class="a_login_center_right_btn"><input type="image" src="<?php echo $url; ?>/images/login_btn.gif" /></div>
        </div>
       <div class="clear" ></div>
      </div>
    </div>
    </form>
</body>

</html>